<div>
    <form id="reg" action="reg" method="post" >
        <label style="display:block;float:left;width:5em">姓名:</label><input type="text" id="name" tip="输入你的名字" /><br />
        <label  style="display:block;float:left;width:5em">密码:</label><input type="password" id="password" maxlength="20" reg="[a-zA-Z]*[0-9]+$" tip="密码为字母或者数字组合"/><br />
        <label  style="display:block;float:left;width:5em">再次输入:</label><input type="password" id="password" tip="ok,再来一次"/><br/>
        <input value="提交" type="submit" />
        <input value="重置" type="reset" />
    </form>
</div>
